import { apiClient, ApiResponse } from "../lib/api";
export interface smsCodeModel {
  uuid: string;
  code: string;
  phone: string;
  type?: string;
}

export async function sendSmsCode(
  params: smsCodeModel
): Promise<ApiResponse<string>> {
  return apiClient.post<string>("/sendSmsCode", params);
}

export async function getCodeImg() {
  return apiClient.get("/captchaImage");
}
